﻿@model tutors_clus.Models.annoucement

@{
    ViewBag.Title = Model.title_ann;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="news_detail">
    <div class="title_new_anno">
        <h2>@Model.title_ann</h2>
    </div>
    <div class="detail_new_anno">
        <p>@Model.create_date_ann</p>
        <div>@MvcHtmlString.Create(Model.detail_ann)</div>
        <div class="author">Theo @Model.writer_ann</div>
        <div class="clear"></div>
        <div class="file_att">
            <a href="~/Content/FileUpload_annou/@Model.file_attach_ann">@Model.file_attach_ann</a>
        </div>
    </div>
</div>
    @if (@ViewBag.count > 0) 
    {
    <div class="other_news_anno">
        <ul data-role="listview" data-inset="true">
            <li data-role="list-divider">Tin cũ hơn</li>
            @foreach (var item in  @ViewBag.list)
                {

                <li><a href="@Url.Action("Annoucement", new { id=@item.id_ann})">@item.title_ann</a><i>(@item.create_date_ann)</i></li>
                }
        </ul>
    </div>
      }
    @Html.ActionLink("Quay lại danh sách thông báo", "Annoucements")

